import { request } from "../request"
// 获取轮播图列表
export const carouselList = (data) => {
  return request({
    url: 'resource/carouselList',
    method: 'POST',
    data
  })
}
// 添加轮播图
export const carouselAdd = (data) => {
  return request({
    url: 'resource/carouselAdd',
    method: 'POST',
    data
  })
}

// 轮播图排序
export const carouselSort = (data) => {
  return request({
    url: 'resource/carouselSort',
    method: 'POST',
    data
  })
}
// 轮播图删除
export const carouselDelete = (params) => {
  return request({
    url: 'resource/carouselDelete',
    method: 'GET',
    params
  })
}

// 案例轮播图列表
export const caseList = (data) => {
  return request({
    url: 'resource/caseList',
    method: 'POST',
    data
  })
}
// 添加案例轮播图
export const caselistAdd = (data) => {
  return request({
    url: 'resource/caselistAdd',
    method: 'POST',
    data
  })
}
// 删除案例轮播图
export const caselistDelete = (params) => {
  return request({
    url: 'resource/caselistDelete',
    method: 'get',
    params
  })
}

// 案例图列表
export const caseimgList = (data) => {
  return request({
    url: 'resource/caseimgList',
    method: 'POST',
    data
  })
}
// 添加案例图
export const caselistimgAdd = (data) => {
  return request({
    url: 'resource/caselistimgAdd',
    method: 'POST',
    data
  })
}
// 案例图排序
export const caselistSort = (data) => {
  return request({
    url: 'resource/caselistSort',
    method: 'POST',
    data
  })
}

// 施工视频列表
export const bulidList = (data) => {
  return request({
    url: 'resource/bulidList',
    method: 'POST',
    data
  })
}

// 施工视频添加或修改
export const bulidAdd = (data) => {
  return request({
    url: 'resource/bulidAdd',
    method: 'POST',
    data
  })
}

// 施工视频删除
export const bulidDelete = (params) => {
  return request({
    url: 'resource/bulidDelete',
    method: 'GET',
    params
  })
}
// 施工视频排序
export const buildSort = (data) => {
  return request({
    url: 'resource/buildSort',
    method: 'POST',
    data
  })
}


// 产品列表
export const productList = (data) => {
  return request({
    url: 'resource/productList',
    method: 'POST',
    data
  })
}
// 产品列表
export const productAdd = (data) => {
  return request({
    url: 'resource/productAdd',
    method: 'POST',
    data
  })
}

// 产品删除
export const productDelete = (params) => {
  return request({
    url: 'resource/productDelete',
    method: 'GET',
    params
  })
}
// 产品修改
export const productChange = (data) => {
  return request({
    url: 'resource/productChange',
    method: 'POST',
    data
  })
}

// icons列表
export const iconsList = (params) => {
  return request({
    url: 'resource/iconsList',
    method: 'GET',
    params
  })
}
// icons清空
export const iconsEmpty = (data) => {
  return request({
    url: 'resource/iconsEmpty',
    method: 'post',
    data
  })
}
// 关于我们轮播图
export const abountList = (data) => {
  return request({
    url: 'resource/abountList',
    method: 'post',
    data
  })
}

// 关于我们轮播图
export const abountAdd = (data) => {
  return request({
    url: 'resource/abountAdd',
    method: 'post',
    data
  })
}
// 关于我们轮播图
export const abountDelete = (params) => {
  return request({
    url: 'resource/abountDelete',
    method: 'get',
    params
  })
}
// 关于我们排序
export const abountSort = (data) => {
  return request({
    url: 'resource/abountSort',
    method: 'post',
    data
  })
}
// 获取图片及文本内容
export const imgOrTextList = (data) => {
  return request({
    url: 'resource/imgOrTextList',
    method: 'post',
    data
  })
}
// 清除文本图片或内容
export const imgOrTextClear = (data) => {
  return request({
    url: 'resource/imgOrTextClear',
    method: 'post',
    data
  })
}
// 修改内容
export const imgOrTextChange = (data) => {
  return request({
    url: 'resource/imgOrTextChange',
    method: 'post',
    data
  })
}


